Skip to main content

Chain Config

Queries information for the specified Cosmos chain.

query ChainConfig($chainUid: String, $chainId: String) {
chains {
chain_config(chain_uid: $chainUid, chain_id: $chainId) {
chain_id
chain_uid
display_name
explorer_url
factory_address
token_factory_address
logo
type
}
}
}

Example​

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Query($chainUid: String, $chainId: String) {\n  chains {\n    chain_config(chain_uid: $chainUid, chain_id: $chainId) {\n      chain_id\n      factory_address\n      display_name\n      explorer_url\n      chain_uid\n      logo\n      type\n      token_factory_address\n    }\n  }\n}","variables":{"chainUid":"coreum"}}'

Open in Playground

Arguments​

NameTypeDescription
chainIdStringThe ID of the chain. If not provided, chainUid must be specified.
chainUidStringThe unique identifier (UID) of the chain. If not provided, chainId must be specified.

Return Fields​

FieldTypeDescription
chain_idStringThe chain ID used in the protocol.
chain_uidStringThe unique identifier (UID) of the chain.
display_nameStringA user-friendly name for the chain.
explorer_urlStringA URL to the block explorer for this chain.
factory_addressStringThe contract address of the main factory on that chain.
token_factory_addressStringThe contract address for the token factory on this chain.
logoStringThe logo URL or path used in the UI.
typeStringThe ecosystem the chain belongs to such as "EVM" or "Cosmwasm".